<?php
header('Content-Type:text/html;charset=gbk');
require_once("db_manage.php");
require_once '../bbs/include/common.inc.php';

$module = $_GET['module'];
$id = $_GET['id'];
$forum = $_GET['forum'];

delete($module, $id);

if($module=="flash"){
	echo "<script>location.href='manage_home_flashhot.php';</script>";
}else if($module=="search"){
	echo "<script>location.href='manage_home.php';</script>";
}else if($module=="sister_link"){
	echo "<script>location.href='manage_home.php';</script>";
}else if($module=="bbs_top"){
	echo "<script>location.href='manage_home_bbs_top.php';</script>";
}else if($module=="suggest"){
	echo "<script>location.href='manage_home_suggest.php';</script>";
}else if($module=="special"){
	echo "<script>location.href='manage_home_special.php';</script>";
}else if($module=="travel"){
	echo "<script>location.href='manage_home_information.php';</script>";
}else if($module=="food"){
	echo "<script>location.href='manage_home_information.php';</script>";
}else if($module=="bbs_hot"){
	if($forum=="1"){
		echo "<script>location.href='manage_home_hot.php?forumsort=1';</script>";
	}else if($forum=="2"){
		echo "<script>location.href='manage_home_hot.php?forumsort=2';</script>";
	}else if($forum=="3"){
		echo "<script>location.href='manage_home_hot.php?forumsort=3';</script>";
	}else if($forum=="4"){
		echo "<script>location.href='manage_home_hot.php?forumsort=4';</script>";
	}
}else if($module=="favorite"){
	echo "<script>location.href='manage_home_favorite.php';</script>";
}else if($module=="diary"){
	echo "<script>location.href='manage_home_diary.php';</script>";
}else if($module=="album"){
	echo "<script>location.href='manage_home_pic.php';</script>";
}
?> 